home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
0643C.ZIP
/
DBINDENT.DOC
< prev
next >
Wrap
Text File
|
1987-05-31
|
8KB
|
267 lines
dbindent (tm)
User's Documentation
Version 1.0
March 1986
Copyright (C) 1985,1986 Kelferama , Ltd. and Steve Kelfer
All Rights Reserved
dbindent (tm)
Use Restrictions and Registration : This product is copyright (C) 1985
,1986 by Kelferama, Ltd. and Steve Kelfer. All rights reserved.
Non-registered users are granted a limited license to use this program on a
trial basis , and to copy the program for trail use by others subject to
the following conditions:
The program is distributed in unmodified form, complete with
this documentation.
No fee , charge , or other consideration , or renumeration is
requested or accepted.
The program is not reproduced in mass or ditributed in
conjunction with any other product.
If you like this product and intend to use it on an ongoing basis
you are required to register this product and show your support for its
author. Commercial use by business or governmental agencies is strictly
prohibited.
This product is designed to aid the dbase programmer and is
intended primarily for dbase III and dbase III Plus. but is not limited
therein. Any comments and suggestions are welcomed and should be addressed
to the board on which you found this product , or if you prefer , you may
send written inquiries and comments to the address listed below.
You may register this product with us by sending a check or money
order for $10 to :
Kelferama, Ltd.
400 S. Flores
San Antonio, Tx. 78204
Registered users will be notified of upcoming revisions of this
product as well as other dbase tools and utilities we have available. Any
updates of this program will be provided free of charge upon request.
Program disks , however are not included in registration fees. In addition,
any service or questions addressed to this product will be supplied to
registered users only.
Registered users may also request additional copies without the
inconvience or expense of downloading , if they prefer , by sending a blank
formatted disk to the above address together with a self-addressed postage
paid return mailer. Your copy , together with documentation , will be
sent to you return mail on the user's disc. Updates can also be obtained by
registered users in this same manner.
Remember, this is user supported software. We encourage you to
copy it and pass it along to friends as well as upload to public bulletin
boards. Registration is voluntary on your part , however , essential for
the continual revision and improvement of this and related products. Please
remember the author and register this product. We beleive the fee is indeed
a nominal one and well worth the value of the product.
Thank you.
Copyright (C) 1985,1986 Kelferama , Ltd. and Steve Kelfer
dbindent (tm)
Breif Desription : dBindent is a formatting utility for dBase program
files. It provides automatic indentation and error detection of condition-
al structures as well as set of optional switches that include :
1) screen control
2) case conversion
3) blank line removal / addition
Basic Syntax : dbindent [filename] {option switches}
option switches :
1) -S/s - display file to screen
2) -L/l - display lineno 's
3) -C/c - Upper/lower case conversion
4) -B/b - remove blank lines
5) +B/b - add blank lines
All option switches must be separated by at least one blank space.
Explanation of option switches :
1) Screen Control : "-s" or "-S" displays file to screen as it is
formatted . Outputting display will slow the processing somewhat.
2) Line no's : "-L" or "-l" displays lineno's as each line of file is
processed. It is not necessary to display file to screen to display lineno's.
3) Case conversion : "-C" will perform Upper case conversion. "-c" will
perform lower case conversion. Conversion applies to all commands except
those found after "@ say" commands and text within a text/endtext block.
4) Blank Lines : "-B" or "-b" will remove all blank lines from program
file. "+B" or "+b" will insert blank lines immediately before each cond-
itional statemant and immediately following the close of each conditional
structure. This helps further set off conditional branches, especially
when nesting is several levels deep. Note that both switches can be used
simultaneously. This will first remove all blank lines in the file in then
insert lines only before and after each conditional structures.
Examples : dbindent [filename]
This will simply indent file
dbindent [filename] -s -l
This will indent file, display output to screen with lineno's
dbindent [filename] -s -l -b
This will indent file , display to screen with lineno's, and
remove all blank lines in file.
dbindent [filename] -c
This will indent file and convert all command lines to
lowercase (except for @say statements and text/endtext blocks).
dbindent [filename] -s -l -C -b +b
This will indent file, display file on screen with lineno's
convert all command lines to uppercase, remove blank lines, and then insert
blank lines immediately before and after conditional structures.
Copyright (C) 1985,1986 Kelferama , Ltd. and Steve Kelfer
dbindent (tm)
Notes on usage : Simply running dbindent with no option switches will
provide the fastest execution , averaging 1800 to 2500 lines a minute on an
average file (utilizing standard PC). The only switch that can slow
execution time noticeably is screen output. The overhead involved here
slows the process down by 50% on most systems. Although the other switches
provide some additional overhead, their effect on execution time is
minimal.
There is some schools of thought that indented files, though they are
easier to read, slow execution of the interpreter. While this is
theoretically true, my tests have shown this to be of little consequence in
most cases. In any case, should you decide that it is necessary, you can
rename your indented file with a differant extension, and then use a
program such as dCrunch to compress file. You can find some discussion on
this subject in recent issues of Databased Advisor ,if it concerns you.
Upon completion of file processing, you will be notified of the total
number of lines now in the file , the total number of "do while"s and
"enddo"s, "do case"s and "endcases" , and "if"s and "endif"s. Any
incompleted conditional structures will be called to your attention and
explained breifly. This is a common programming error amongst even more
proficient dbase programmers. (Improperly nested structures also cause
havoc and are sometimes harder to find, especially in larger files. These
errors can be detected with another Kelferama product called nestchek.
Registration of this product entitles the user to obtain this and other
associated products.)
Copyright (C) 1985,1986 Kelferama , Ltd. and Steve Kelfer